<?php

namespace app\site\service\site;

use app\model\site\SiteUserGroup;
use app\site\service\traits\InstanceTrait;
use JetBrains\PhpStorm\Pure;

class SiteUserGroupService extends \app\site\service\SiteBaseService
{

    use InstanceTrait;

    function initialize()
    {
        $this->model = new SiteUserGroup();
    }


    #[Pure] function formatData(array $data): array
    {
        if ($data['rules']??''){
            $data['rules'] = miImplode($data['rules']);
        }
        return $data;
    }
}
